/*
 * @Description:
 * @Version: 2.0
 * @Autor: zhangjx
 * @Date: 2023-05-25 14:19:02
 * @LastEditors: uphldjx 1373577124@qq.com
 * @LastEditTime: 2024-05-26 15:31:50
 */
import { defineStore } from "pinia";

export const useCommonStore = defineStore("common", () => {
  let globalQuery: any = ref({});
  const setGlobalData = (data: any,type:string) => {
    globalQuery.value[type] = data;
  };

  return {
    globalQuery,
    setGlobalData,
  };
});
